import { request } from './request.js';
//获取医护列表
export const getMedicalPersonList = (params) => {
  return request({
    url: '/Maintain/SelectUser/btn-medicalsearch',
    method: 'get',
    params,
  });
};
//新增医护
export const addMedicalPerson = (data) => {
  return request({
    url: '/Maintain/AddUser/btn-medicaladd',
    method: 'post',
    data,
  });
};
//修改医护
export const editMedicalPerson = (data) => {
  return request({
    url: '/Maintain/UpdateUser/btn-medicalupdate',
    method: 'post',
    data,
  });
};
//删除医护
export const delMedicalPerson = (params) => {
  return request({
    url: '/Maintain/DeleteUser/btn-medicaldelete',
    method: 'get',
    params,
  });
};
//批量添加医护
export const addMedicalPersonList = (data) => {
  return request({
    url: '/Maintain/addUserList/btn-medicalload',
    method: 'post',
    data,
  });
};
